<?php 

class Buyback_ConfirmController extends Zend_Controller_Action{
	
	public function indexAction(){
		
		
		$form = new Buyback_Form_Confirm(array(
				'action'	=>	'/confirm',
				'method'	=>	'post'	
		));
		
		
		$this->view->confirmText =  file(APPLICATION_PATH . '/configs/Terms.txt');

		$this->view->form = $form;
		
		$request = $this->getRequest();
		if($request->isPost()){
			$confirmOptions = $this->_getParam('confirmOptions');
			if($confirmOptions == 'agreeFB'){
				$this->_helper->redirector->gotoUrl('/buyback/checkout');	
			}
			if($confirmOptions == 'agreeFB'){
				$this->_helper->redirector->gotoUrl('/buyback/checkout');
			}
//			else do nothing
		}
//		
	}
}